package QL;

import java.util.List;
import java.util.ArrayList;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

public class ButlerResourceStockItem implements IQLResponse
{
    /// <summary>
    /// 资源名称
    /// </summary>
    public String Name;

    /// <summary>
    /// 总存量
    /// </summary>
    public long Count;

    @Override
    public void DeserializeFromJson(JSONObject jsonObj)
    {
        JSONObject t = jsonObj;
        if (t.has("name"))
            Name = t.getString("name");
        if (t.has("count"))
            Count = t.getLong("count");
    }
}
